package TestDay;

import java.util.Scanner;

public class Test3 {
    public static void main(String[] args) {
        Scanner sc=new Scanner(System.in);
        System.out.println("请输入第一个整数");
        int a=sc.nextInt();
        System.out.println("请输入第二个整数");
        int b=sc.nextInt();
        System.out.println("请输入第三个整数");
        int c=sc.nextInt();
        shunxu(a,b,c);
    }
    public static void shunxu(int a,int b,int c){
        if(a>b&&b>c){
            System.out.println("从大到小的顺序是"+a+" "+b+" "+c);
        }else if(a>c&&c>b){
            System.out.println("从大到小的顺序是"+a+" "+c+" "+b);
        }else if(b>a&&a>c){
            System.out.println("从大到小的顺序是"+b+" "+a+" "+c);
        }else if(b>c&&c>a){
            System.out.println("从大到小的顺序是"+b+" "+c+" "+a);
        }else if(c>a&&a>b){
            System.out.println("从大到小的顺序是"+c+" "+a+" "+b);
        }else{
            System.out.println("从大到小的顺序是"+c+" "+b+" "+a);
        }

    }
}
